package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.business.domain.ServiceItem;
import cn.wolfcode.car.business.query.ServiceItemQuery;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ServiceItemMapper extends BaseMapper<ServiceItem> {
    int deleteByPrimaryKey(Long id);

    int insert(ServiceItem record);

    ServiceItem selectByPrimaryKey(Long id);

    List<ServiceItem> selectAll();

    int updateByPrimaryKey(ServiceItem record);

    List<ServiceItem> selectForList( ServiceItemQuery qo);

    //更改销售状态
    void changeSaleStatus(@Param("id") Long id, @Param("saleStatusOn") Integer saleStatusOn);

    //更改审核状态
    void changeAuditStatus(@Param("serviceItemId") Long serviceItemId, @Param("auditStatus") Integer auditStatus);
}